package Hxw3DEngine.utils 
{
	/**
	 * ...
	 * @author huangxw
	 */
	public class MathUtils 
	{
		//1弧度对应的角度
		public static const radian:Number = 360 / (2 * Math.PI);

		//已知对边和邻边求角度  Relative对边 neighbor邻边
		public function getAngleByTangent(relative:Number,neighbor:Number):Number {
			var proportion:Number = relative / neighbor;
			var rad:Number = Math.atan(proportion);
			return rad * radian;
		}
		
	}

}